<?php
error_reporting(0);
set_time_limit(0);
$phpPath = dirname(dirname(__FILE__));
$aNum = FALSE;
include_once($phpPath."/hip.php" );
include_once($phpPath."/config.php" );
include_once($phpPath."/function.php" );
include_once($phpPath."/class/functions.php" );
include_once($phpPath."/class/user.php" );
include_once($phpPath."/class/db.php" );
include_once($phpPath."/class/config.php" );
include_once($phpPath."/class_3d/class.lotto3d.php" );
include_once($phpPath."/class_5h/class.lotto5h.php" );
include_once($phpPath."/class_sb/class.lottosb.php" );
include_once($phpPath."/class_3d/MyLotto_3d.php" );
include_once($phpPath."/class_5h/MyLotto_5h.php" );
include_once($phpPath."/class_sb/MyLotto_sb.php" );
include_once($phpPath."/class_3d/RateConfig_3d.php" );
include_once($phpPath."/class_5h/RateConfig_5h.php" );
include_once($phpPath."/class_sb/RateConfig_sb.php" );
include_once($phpPath."/class_3d/postBetToXBet_3d.php" );


   
		getdb("update k_user set balance=amount where amount_type=0");
        //include_once($phpPath."/class_3d/Amounts_float_3d.php" );
        //$AmountFloat3D = new Amounts_float_3d( );
        //$AmountFloat3D->countBet(0 , "3s3" , date("Y-m-d" , strtotime("-1 days")));
        echo date("Y-m-d H;i:s")." postBetToXBet() - begin\n";
        postBetToXBet();
        echo date("Y-m-d H;i:s")." postBetToXBet() - end\n";
        getdb("TRUNCATE TABLE k_user_bet");
        getdb("TRUNCATE TABLE k_sessions");

?>
<script>
    function reflesh(){
		document.location.reload();
	}
	setTimeout("reflesh()",2*1000);
</script>